<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>CSS3权重</title>
	<style type="text/css">
		div{
			color: red;
		}
		#box{
			color: blue;
		}
		#body1 .con{
			color: green!important;
		}
	</style>
</head>
<body id="bdoy1">
	<div id="box" style="color: pink" class="con">这是一个div元素</div>
</body>
</html>